import React from 'react';
import { Space, Table, Tag } from 'antd';
import PropTypes from 'prop-types';
const defaultProps = {
  columns: [
    {
      title: '操作',
      key: 'operation',
      fixed: 'right',
      width: 140,
      render: () => <a>test</a>,
    },
  ],
  dataSource: [{}],
  pagination: {
    position: 'bottom',
  },
};
const mTable = ({ config }) => {
  const props = { ...defaultProps, ...config };
  return <Table {...props} />;
};
mTable.propTypes = {
  config: PropTypes.object,
};
export default mTable;
